package com.hyq.learn.api.service;

import com.hyq.learn.api.mapper.OrderMapper;
import com.hyq.learn.api.model.entity.Order;
import com.hyq.learn.common.aop.TimeCostLog;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author heyuqin
 * @date 2024/5/28 19:33
 */
@Service
public class OrderService {

    @Resource
    private OrderMapper orderMapper;

    @TimeCostLog
    public List<Order> listOrder(Long cursor, Integer pageSize) {
        return orderMapper.listOrder(cursor, pageSize);
    }
}
